package com.chen.authority.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.chen.authority.common.model.PageQo;
import com.chen.authority.common.response.Response;
import com.chen.authority.model.dto.DictDataDto;
import com.chen.authority.model.po.DictDataPo;
import com.chen.authority.model.qo.DictDataQo;
import com.chen.authority.model.vo.DictDataVo;

import java.util.List;

/**
 * 字典数据 Service接口
 *
 * @author chengy
 * @date 2023-09-04
 */
public interface DictDataService extends IService<DictDataPo> {

    Page<DictDataVo> pageQueryDictDataList(PageQo pageQo, DictDataQo dictDataQo);

    Response addOrUpdateDictData(Integer id, DictDataDto dto);

    List<DictDataVo> findDictDataList(QueryWrapper<DictDataPo> queryWrapper);

}